package com.ruoyi.mall.ware.feign;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "ruoyi-mall-product")
public interface ProductFeignService {

    /**
     * TODO 测试直接给网关发请求
     * @param id
     * @return
     */
    @GetMapping(value = "/sku/{id}")
    public R getInfo(@PathVariable("id") Long id);
}
